package com.spring.extjs.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.spring.extjs.dao.ISystemDAO;
import com.spring.extjs.pageModel.AreaVO;
import com.spring.extjs.service.ISystemService;

@Service
public class SystemServiceImpl implements ISystemService {

	@Autowired
	private ISystemDAO systemDAO;
	
	@Override
	public List<AreaVO> provinceList() {
		
		return systemDAO.provinceList();
	}

	@Override
	public List<AreaVO> cityList(int provinceId) {
		
		return systemDAO.cityList(provinceId);
	}

	@Override
	public List<AreaVO> districtList(int cityId) {
		
		return systemDAO.districtList(cityId);
	}

}
